<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      //1.字面量
      var arr = [];
      //2. new Arry
      var arr1 = new Array(2); //数组长度是2
      var arr2 = new Array(2, 3); //等价于[2,3] 数组种有两个元素2,3
    </script>
  </head>
  <body></body>
</html>
